package com.yanqu.road.entity.match;

import com.yanqu.road.entity.DataObject;

/**
 * @author ：zfr
 * @date ：2021/2/6 17:31
 * 杂艺玩家门客数据
 */
public class MatchPatronsData extends DataObject {
    /**
     * 玩家id
     */
    private long userId;
    /**
     * 门客id
     */
    private int patronsId;
    /**
     * 预扣除出战次数
     */
    private int preMatchBattleTimes;
    /**
     * 出战次数
     */
    private int matchBattleTimes;
    /**
     * 出战次数恢复时间
     */
    private long recoveryTime;
    /**
     * 门客出战时间id
     */
    private int battleTimeId;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPatronsId() {
        return patronsId;
    }

    public void setPatronsId(int patronsId) {
        this.patronsId = patronsId;
    }

    public int getPreMatchBattleTimes() {
        return preMatchBattleTimes;
    }

    public void setPreMatchBattleTimes(int preMatchBattleTimes) {
        this.preMatchBattleTimes = preMatchBattleTimes;
    }

    public int getMatchBattleTimes() {
        return matchBattleTimes;
    }

    public void setMatchBattleTimes(int matchBattleTimes) {
        if (this.matchBattleTimes != matchBattleTimes) {
            this.matchBattleTimes = matchBattleTimes;
            setUpdateOption();
        }
    }

    public long getRecoveryTime() {
        return recoveryTime;
    }

    public void setRecoveryTime(long recoveryTime) {
        if (this.recoveryTime != recoveryTime) {
            this.recoveryTime = recoveryTime;
            setUpdateOption();
        }
    }

    public int getBattleTimeId() {
        return battleTimeId;
    }

    public void setBattleTimeId(int battleTimeId) {
        if (this.battleTimeId != battleTimeId) {
            this.battleTimeId = battleTimeId;
            setUpdateOption();
        }

    }
}
